//
//  ActionClassSecondCell.m
//  A段项目,漫画
//
//  Created by dlios on 15-4-30.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "ActionClassSecondCell.h"

@implementation ActionClassSecondCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.picImageView = [[UIImageView alloc]init];
        [self.contentView addSubview:self.picImageView];
        [_picImageView release];
        
        self.namelable = [[UILabel alloc]init];
        [self.contentView addSubview:self.namelable];
        [_namelable release];
        
        self.total_numlabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.total_numlabel];
        [_total_numlabel release];
        
        self.cur_numlabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.cur_numlabel];
        [_cur_numlabel release];
        
        self.scorelabel = [[UILabel alloc]init];
        [self.contentView addSubview:self.scorelabel];
        [_scorelabel release];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.picImageView.frame = CGRectMake(5, 10, 100, 100);
    self.picImageView.layer.borderWidth = 3;
    self.picImageView.layer.cornerRadius = 10;
    self.picImageView.layer.masksToBounds = YES;
    self.picImageView.layer.borderColor = [UIColor clearColor].CGColor;
    
    self.namelable.frame = CGRectMake(135, 0, 200, 40);
    
    //    self.namelable.textAlignment = NSTextAlignmentCenter;
    
    //    self.total_numlabel.frame = CGRectMake(120, 80, 120, 40);
    
    self.cur_numlabel.frame = CGRectMake(135, 40, 120, 40);
    //    self.cur_numlabel.textAlignment = NSTextAlignmentCenter;
    
    self.scorelabel.frame = CGRectMake(135, 80, 120, 40);
    //    self.scorelabel.textAlignment = NSTextAlignmentCenter;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
